//
//  GQHQutationModel.h
//  Xanthium
//
//  Created by GuanQinghao on 12/04/2018.
//  Copyright © 2018 GuanQinghao. All rights reserved.
//

#import "GQHBaseModel.h"


@interface GQHQutationModel : GQHBaseModel

/// 报价ID
@property (nonatomic, copy) NSString *qh_qutationID;
/// 报价金额
@property (nonatomic, assign) float qh_amountValue;
/// 报价金额(字符串)
@property (nonatomic, copy) NSString *qh_amountString;
/// 报价状态
@property (nonatomic, copy) NSString *qh_quoteState;
/// 报价时间
@property (nonatomic, copy) NSString *qh_quoteTime;
/// 备注
@property (nonatomic, copy) NSString *qh_note;


/// 货源ID
@property (nonatomic, copy) NSString *qh_freightID;
/// 起始地行政编码
@property (nonatomic, copy) NSString *qh_departureID;
/// 起始地
@property (nonatomic, copy) NSString *qh_departure;
/// 目的地行政编码
@property (nonatomic, copy) NSString *qh_destinationID;
/// 目的地
@property (nonatomic, copy) NSString *qh_destination;
/// 公里数
@property (nonatomic, copy) NSString *qh_mileage;

/// 货物名称
@property (nonatomic, copy) NSString *qh_freightName;
/// 货物重量
@property (nonatomic, assign) CGFloat qh_freightWeight;
/// 货物类型
@property (nonatomic, copy) NSString *qh_freightType;
/// 货物类型编码
@property (nonatomic, copy) NSString *qh_freightTypeCode;
/// 货源需求车型
@property (nonatomic, copy) NSString *qh_modelWanted;
/// 货源需求车长
@property (nonatomic, copy) NSString *qh_lengthWanted;
/// 装货人
@property (nonatomic, copy) NSString *qh_loader;
/// 装货人电话
@property (nonatomic, copy) NSString *qh_loaderMobile;
/// 装车时间
@property (nonatomic, copy) NSString *qh_loadingTime;


/// 协议ID
@property (nonatomic, copy) NSString *qh_contractID;


/// 报价人ID (即司机ID)
@property (nonatomic, copy) NSString *qh_quoterID;
/// 报价人姓名(即司机姓名)
@property (nonatomic, copy) NSString *qh_quoterName;
/// 报价人头像(即司机头像)
@property (nonatomic, copy) NSString *qh_quoterAvatar;
/// 报价人电话(即司机电话)
@property (nonatomic, copy) NSString *qh_quoterMobile;
/// 报价人评分
@property (nonatomic, assign) float qh_quoterScore;
/// 车型编码
@property (nonatomic, copy) NSString *qh_modelCode;
/// 车型
@property (nonatomic, copy) NSString *qh_model;
/// 车牌号
@property (nonatomic, copy) NSString *qh_licensePlateNumber;
/// 车辆标准车长
@property (nonatomic, copy) NSString *qh_normalLength;
/// 车辆标准载重
@property (nonatomic, copy) NSString *qh_normalLoading;

/**
 "id": "4028b881627b535d01627b76f353001b",
 "offer": 3000.12,
 "offerString": "3000.12",
 "state": "03",
 "offerTime": "2018-04-10 19:03:58",
 "note": "测试",
 
 "sourcesId": "4028b881627b535d01627b6e93dc0014",
 "origin": "石家庄市 高邑县",
 "destination": "邯郸市 鸡泽县",
 "mileage": "320.00",
 "commodityName": "玉米",
 "demandVehicle": "1000.00",
 "demandModels": "仓栅式货车",
 "demandVehicleLength": "17米",
 "releasePeople": "任旭庚",
 "releasePeoplePhone": "18792684151",
 "loadingTime": "2018-03-31 12:38:22",
 
 "buWaybillAgreementId": "4028b881627b535d01627b89daed0023",
 
 "userId": "4028b881627b535d01627b62b96b000a",
 "empName": "司机11",
 "headPicture": "4228c1a2692b4465899021eb76b161eb.jpg",
 "drivePhone": null,
 "score": 4.5,
 "licenseplatetypecode": "",
 "vehicleclassificationcode": "普通货车",
 "carLength": "",
 "carLoad": "30"
 */

///  获取报价列表
+ (void)qh_fetchQutationsWithParameters:(NSDictionary *)parameters success:(void(^)(BOOL status, NSNumber *code, NSString *message, NSArray<GQHQutationModel *> *qutations))success failure:(void(^)(NSError *error))failure;

@end
